<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>upland测试</title>
    <jsp:include page="/com/common/_js.jsp"></jsp:include>
    <script type="text/javascript">
    // <![CDATA[
    $(document).ready(function() {
      $('#file_upload').uploadify({
        'uploader'  	: 'uploadify/uploadify.swf',
        'script'    	: '/com/uploadAction!upload.jspa',
        'cancelImg' 	: 'uploadify/cancel.png',
        'fileDataName'	: 'uploadify', 
        'folder'    	: '/uploads',
        'auto'      	: true,
        'onComplete'	: function(event, ID, fileObj, response, data) {
		 	var reqObj = eval('(' + response + ')');
		 	alert(reqObj.filePath);
        }
      });
    });
    // ]]>
    </script>

</head>
<body>
<input id="file_upload" type="file" name="file_upload" />

</body>
</html>